package org.jeecg.modules.wlhy.customer.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: hy_df_fee
 * @Author: jeecg-boot
 * @Date:   2023-01-10
 * @Version: V1.0
 */
@Data
@TableName("hy_df_fee")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="hy_df_fee对象", description="hy_df_fee")
public class HyDfFee implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**单据类型*/
    @Dict(dicCode = "billType")
    @ApiModelProperty(value = "单据类型(1支付运费  6预付运费7分段预付运费 8支付计划首付9支付计划到付)")
    private String billType;
	/**货主id*/
    @Excel(name = "货主", width = 15, dictTable = "hy_customer", dicText = "customer_name", dicCode = "id")
    @Dict(dictTable = "hy_customer", dicText = "customer_name", dicCode = "id")
    @ApiModelProperty(value = "货主id")
    private String customerId;
	/**经纪人id*/
    @Excel(name = "货主", width = 15, dictTable = "hy_customer", dicText = "customer_name", dicCode = "id")
    @Dict(dictTable = "hy_customer", dicText = "customer_name", dicCode = "id")
    @ApiModelProperty(value = "经纪人id")
    private String agentId;
	/**运单数量*/
	@Excel(name = "运单数量", width = 15)
    @ApiModelProperty(value = "运单数量")
    private Integer billNums;
	/**垫付金额*/
	@Excel(name = "垫付金额", width = 15)
    @ApiModelProperty(value = "垫付金额")
    private BigDecimal amt;
	/**0待还款1已还款*/
//	@Excel(name = "0待还款1已还款", width = 15)
    @ApiModelProperty(value = "0待还款1已还款")
    private String st;

	/**支付渠道 1农行支付 2中信 */
    @Dict(dicCode = "pay_channel")
    @ApiModelProperty(value = "支付渠道 1农行支付 2中信 ")
    private String payChannel;
	/**已还款金额*/
//	@Excel(name = "已还款金额", width = 15)
//    @ApiModelProperty(value = "已还款金额")
//    private BigDecimal backMoney;
	/**流水凭证*/
//	@Excel(name = "流水凭证", width = 15)
    @ApiModelProperty(value = "流水凭证")
    private String billFile;

    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**更新日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**删除状态(0-正常,1-已删除)*/
    @ApiModelProperty(value = "删除状态(0-正常,1-已删除)")
    @TableLogic
    private String delFlag;
}
